package com.wingkingbobo.livedemo;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.wingkingbobo.live.ui.LiveActivity;
import com.wingkingbobo.live.ui.LivePlayActivity;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override
    public void onClick(View v) {
        int id = v.getId();
        if (id == R.id.btn_live) {
            startActivity(new Intent(this, LiveActivity.class));
        } else if (id == R.id.btn_live_play) {
            startActivity(new Intent(this, LivePlayActivity.class));
        }
    }
}
